﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UTallySurveyList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.UserModel.UTallySurveyList" %>
<form id="pagerForm" method="post" action="UserModel/UTallySurveyList.aspx">
<input type="hidden" name="CustomerName" value="<%=MachineType %>" />
<input type="hidden" name="SerialNumber" value="<%=SerialNumber %>" />
<input type="hidden" name="AgentName" value="<%=AgentName %>" />

<input type="hidden" name="CallDateFrom" value="<%=SurveyDateFrom %>" />
<input type="hidden" name="CallDateTo" value="<%=SurveyDateTo %>" />
<input type="hidden" name="IsKeep" value="<%=IsKeep %>" />

<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
</form>
<form id="form1" runat="server" method="post" action="UserModel/UTallySurveyList.aspx" onsubmit="return navTabSearch(this);">
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent">
            <tr>                
                
                <td>
                    机型：                       
                </td>
                <td>
                   <input name="MachineType" type="text" value="<%=MachineType %>" />
                </td>
                <td>
                    机号：                       
                </td>
                <td>
                   <input name="SerialNumber" type="text" value="<%=SerialNumber %>" />
                </td>
                  <td>
                   经销商名称：
                </td>
                <td >
                   <input name="AgentName" type="text" value="<%=AgentName %>" />
                </td>
            </tr>
            <tr>
                <td>
                   调查日期：
                </td>
                <td colspan="3" >
                   从<input name="SurveyDateFrom" type="text" class="date" value="<%=SurveyDateFrom %>" />
                   到<input name="SurveyDateTo" type="text" class="date" value="<%=SurveyDateTo %>" />
                </td>
                <td>是否保养：</td>
                <td>
                    <label><input type="radio" value="-1" name="IsKeep"  <%=IsKeep==-1?"checked":"" %>/>全部</label>
                    <label><input type="radio" value="1" name="IsKeep"  <%=IsKeep==1?"checked":"" %>/>是</label>
                    <label><input type="radio" value="0" name="IsKeep"  <%=IsKeep==0?"checked":"" %>/>否</label>
                </td>
            </tr>
        </table>
        <div class="subBar">
            <ul>
                <li>
                    <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                </li>
            </ul>
        </div>
    </div>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">           
          <% if (HasPower(IHISCETeim.Web.Permission.新增))
             {%>
            <li><a class="add" href="UserModel/UTallySurveyAdd.aspx" target="navTab" title="添加调查记录" rel="U4008RecordAdd"><span>添加</span></a></li>
           <%} %>
           
           <% if (HasPower(IHISCETeim.Web.Permission.删除))
               {%>
            <li><a class="delete" href="sysAjaxDone.ashx?ajaxmethod=DeleteUTallySurvey&UTSID={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
           <%} %>
        </ul>
    </div>
    <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table class="table" width="100%" layouth="168">
        <thead>
            <tr>               
                <th orderField="SurveyDate" class="asc">
                    点检日期
                </th>  
                 <th  orderField="SerialNumber" class="asc">
                    机号
                </th>              
                <th >
                    作业地点
                </th>
                <th >
                   作业类型
                </th>                 
                <th align="center">
                   工作小时
                </th>  
                <th>
                   调查保养的时间
                </th>  
                <th orderField="IsKeep" class="asc">
                    是否有保养
                </th>            
                <th >
                    经销商
                </th> 
                <th >
                    服务电话
                </th>               
                <th >
                    联系人
                </th> 
                <th >
                    电话
                </th>                              
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr target="sid_user" rel="<%# Eval("UTSID") %>">
                <td><%# Convert.ToDateTime(Eval("SurveyDate")).ToString("yyyy-MM-dd")%></td>
                <td>
                <%# Eval("SerialNumber")%>
                </td>                
				<td><%# Eval("WorkAddress")%></td>                
				<td><%# Eval("WorkType")%></td>
                <td><%# Eval("WorkTime")%></td>
                <td><%# Eval("SurveyHours")%>H</td>
                <td><%# Convert.ToBoolean(Eval("IsKeep")) ? "是" : "<b style='color:red'>否</b>"%></td>
				<td><%# Eval("AgentName")%></td>
                <td><%# Eval("AgentTel")%></td>
                <td><%# Eval("AgentSvrPer")%></td>
                <td><%# Eval("AgentSvrPerTel")%></td>
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
         </table>
        </FooterTemplate>
    </asp:repeater>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
               <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
            pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div>
</div>
</form>
